import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'

import '@/service'

// router.beforeEach(function (to, from, next) {
//
//   var user = localStorage.getItem("satoken");
//
//   if(user!=null||to.path==='/login'){
//     next();
//   }
//   else {
//     if (user === null || user === '') {
//       next('/login');
//     }
//   }
// })



Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
